<?php get_header(); ?>
<div class="bgh container">
<div class="span-12" id="content">

<div class="gdl container">
	<div class="span-6"><h2 class="gdl sport"><span>Sport</span></h2>
		<div class="recent">
			<?php
			// SPORT = 5
			 $lastposts = get_posts('numberposts=1&category=5');
			 foreach($lastposts as $post) :
			    setup_postdata($post);
			 ?>
			 <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
			 <?php the_excerpt(); ?>
			 <?php endforeach; ?>
			</div>
		</div>
	<div class="span-6"><h2 class="gdl tempolibero"><span>Tempo libero</span></h2>
		<div class="recent">
			<?php
			// TEMPO LIBERO = 7
			 $lastposts = get_posts('numberposts=1&category=7');
			 foreach($lastposts as $post) :
			    setup_postdata($post);
			 ?>
			 <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
			 <?php the_excerpt(); ?>
			 <?php endforeach; ?>
			</div>
		</div>
</div>
<div class="gdl container">
	<div class="span-6"><h2 class="gdl salutealimentazione"><span>Alimentazione</span></h2>
		<div class="recent">
			<?php
			// SALUTE = 6
			 $lastposts = get_posts('numberposts=1&category=6');
			 foreach($lastposts as $post) :
			    setup_postdata($post);
			 ?>
			 <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
			 <?php the_excerpt(); ?>
			 <?php endforeach; ?>
			</div>
		</div>
	<div class="span-6"><h2 class="gdl figlichilicapisce"><span>Figli, chi li capisce</span></h2>
		<div class="recent">
			<?php
			// FIGLI = 4
			 $lastposts = get_posts('numberposts=1&category=4');
			 foreach($lastposts as $post) :
			    setup_postdata($post);
			 ?>
			 <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
			 <?php the_excerpt(); ?>
			 <?php endforeach; ?>
			</div>
		</div>
</div>
</div>
<?php get_sidebar(); ?>
</div> 
<?php get_footer(); ?>